package cn.edu.scau.cmi.luoxintai.adapterMethod;

public class SortUtil implements Sort{
	public SortUtil() {
		
	}
	public  void sortInt(Student[] array) {
		//bubleSort
		for(int i=1;i<array.length;i++) {
			for(int j=0;j<array.length-i;j++) {
				if(array[j].id>array[j+1].id) {
					Student temp = array[j];
					array[j] =array[j+1];
					array[j+1]=temp;
				}
			}
		}
	}

}
